| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | function domReady(fn) { |
||
| 6 | function detach() { |
||
| 7 | if (document.addEventListener) { |
||
| 8 | document.removeEventListener('DOMContentLoaded', completed); |
||
| 9 | window.removeEventListener('load', completed); |
||
| 10 | } else { |
||
| 11 | document.detachEvent('onreadystatechange', completed); |
||
| 12 | window.detachEvent('onload', completed); |
||
| 13 | } |
||
| 14 | } |
||
| 15 | |||
| 58 |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.